HCL
Skip to main content  
 
   


SPRTechnote


The LotusScript Count Property Reflects a Different Number of Documents than the Database Properties

Technote Number: 1088758


Problem:
This issue was reported to Quality Engineering and has been fixed in Notes
5.0.3.

Excerpt from the Lotus Notes and Domino Release 5.0.3 fix list (available at
http://www.ibm.com/developerworks/lotus):
Domino Objects (LotusScript & Java & CORBA)
SPR# JFRK4E7NDF - Fix a problem which caused the Count property of a
NotesDocumentCollection to incorrectly include the count of deletion stubs.
Workaround:
Deleting the deletion stubs in the database can, for a time, correct the
behavior.

A code workaround is also available. It involves using the Search method (of
the NotesDatabase class) to search for all documents in the database. The
larger the database the slower the method will take to execute.

For example:
Dim s As New notessession
Dim db As notesdatabase
Dim col As notesdocumentcollection
Dim notime As New NotesDateTime("")

Set db = s.currentdatabase
Set col = db.Search( "Select @All" ,notime , 0)
Msgbox col.count
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact